package cn.ddiancan.xddcloud.psc.permission.controller;

import cn.ddiancan.xddcloud.common.entity.CommonResult;
import cn.ddiancan.xddcloud.psc.permission.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/permission")
public class PermissionClientController {

    @Autowired
    private PermissionService permissionService;

    @GetMapping("/sync/execute")
    public CommonResult<Integer> syncExecute() {
        return permissionService.scanPermission();
    }
}
